package cn.com.lsy.product.lepao.model.entities;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class LpTrainPlantimeInfoTblExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public LpTrainPlantimeInfoTblExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Integer value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Integer value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Integer value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Integer value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Integer value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Integer> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Integer> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Integer value1, Integer value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Integer value1, Integer value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andTrainPlanIdIsNull() {
            addCriterion("train_plan_id is null");
            return (Criteria) this;
        }

        public Criteria andTrainPlanIdIsNotNull() {
            addCriterion("train_plan_id is not null");
            return (Criteria) this;
        }

        public Criteria andTrainPlanIdEqualTo(Integer value) {
            addCriterion("train_plan_id =", value, "trainPlanId");
            return (Criteria) this;
        }

        public Criteria andTrainPlanIdNotEqualTo(Integer value) {
            addCriterion("train_plan_id <>", value, "trainPlanId");
            return (Criteria) this;
        }

        public Criteria andTrainPlanIdGreaterThan(Integer value) {
            addCriterion("train_plan_id >", value, "trainPlanId");
            return (Criteria) this;
        }

        public Criteria andTrainPlanIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("train_plan_id >=", value, "trainPlanId");
            return (Criteria) this;
        }

        public Criteria andTrainPlanIdLessThan(Integer value) {
            addCriterion("train_plan_id <", value, "trainPlanId");
            return (Criteria) this;
        }

        public Criteria andTrainPlanIdLessThanOrEqualTo(Integer value) {
            addCriterion("train_plan_id <=", value, "trainPlanId");
            return (Criteria) this;
        }

        public Criteria andTrainPlanIdIn(List<Integer> values) {
            addCriterion("train_plan_id in", values, "trainPlanId");
            return (Criteria) this;
        }

        public Criteria andTrainPlanIdNotIn(List<Integer> values) {
            addCriterion("train_plan_id not in", values, "trainPlanId");
            return (Criteria) this;
        }

        public Criteria andTrainPlanIdBetween(Integer value1, Integer value2) {
            addCriterion("train_plan_id between", value1, value2, "trainPlanId");
            return (Criteria) this;
        }

        public Criteria andTrainPlanIdNotBetween(Integer value1, Integer value2) {
            addCriterion("train_plan_id not between", value1, value2, "trainPlanId");
            return (Criteria) this;
        }

        public Criteria andTrainNameIsNull() {
            addCriterion("train_name is null");
            return (Criteria) this;
        }

        public Criteria andTrainNameIsNotNull() {
            addCriterion("train_name is not null");
            return (Criteria) this;
        }

        public Criteria andTrainNameEqualTo(String value) {
            addCriterion("train_name =", value, "trainName");
            return (Criteria) this;
        }

        public Criteria andTrainNameNotEqualTo(String value) {
            addCriterion("train_name <>", value, "trainName");
            return (Criteria) this;
        }

        public Criteria andTrainNameGreaterThan(String value) {
            addCriterion("train_name >", value, "trainName");
            return (Criteria) this;
        }

        public Criteria andTrainNameGreaterThanOrEqualTo(String value) {
            addCriterion("train_name >=", value, "trainName");
            return (Criteria) this;
        }

        public Criteria andTrainNameLessThan(String value) {
            addCriterion("train_name <", value, "trainName");
            return (Criteria) this;
        }

        public Criteria andTrainNameLessThanOrEqualTo(String value) {
            addCriterion("train_name <=", value, "trainName");
            return (Criteria) this;
        }

        public Criteria andTrainNameLike(String value) {
            addCriterion("train_name like", value, "trainName");
            return (Criteria) this;
        }

        public Criteria andTrainNameNotLike(String value) {
            addCriterion("train_name not like", value, "trainName");
            return (Criteria) this;
        }

        public Criteria andTrainNameIn(List<String> values) {
            addCriterion("train_name in", values, "trainName");
            return (Criteria) this;
        }

        public Criteria andTrainNameNotIn(List<String> values) {
            addCriterion("train_name not in", values, "trainName");
            return (Criteria) this;
        }

        public Criteria andTrainNameBetween(String value1, String value2) {
            addCriterion("train_name between", value1, value2, "trainName");
            return (Criteria) this;
        }

        public Criteria andTrainNameNotBetween(String value1, String value2) {
            addCriterion("train_name not between", value1, value2, "trainName");
            return (Criteria) this;
        }

        public Criteria andCoverimgIsNull() {
            addCriterion("coverImg is null");
            return (Criteria) this;
        }

        public Criteria andCoverimgIsNotNull() {
            addCriterion("coverImg is not null");
            return (Criteria) this;
        }

        public Criteria andCoverimgEqualTo(String value) {
            addCriterion("coverImg =", value, "coverimg");
            return (Criteria) this;
        }

        public Criteria andCoverimgNotEqualTo(String value) {
            addCriterion("coverImg <>", value, "coverimg");
            return (Criteria) this;
        }

        public Criteria andCoverimgGreaterThan(String value) {
            addCriterion("coverImg >", value, "coverimg");
            return (Criteria) this;
        }

        public Criteria andCoverimgGreaterThanOrEqualTo(String value) {
            addCriterion("coverImg >=", value, "coverimg");
            return (Criteria) this;
        }

        public Criteria andCoverimgLessThan(String value) {
            addCriterion("coverImg <", value, "coverimg");
            return (Criteria) this;
        }

        public Criteria andCoverimgLessThanOrEqualTo(String value) {
            addCriterion("coverImg <=", value, "coverimg");
            return (Criteria) this;
        }

        public Criteria andCoverimgLike(String value) {
            addCriterion("coverImg like", value, "coverimg");
            return (Criteria) this;
        }

        public Criteria andCoverimgNotLike(String value) {
            addCriterion("coverImg not like", value, "coverimg");
            return (Criteria) this;
        }

        public Criteria andCoverimgIn(List<String> values) {
            addCriterion("coverImg in", values, "coverimg");
            return (Criteria) this;
        }

        public Criteria andCoverimgNotIn(List<String> values) {
            addCriterion("coverImg not in", values, "coverimg");
            return (Criteria) this;
        }

        public Criteria andCoverimgBetween(String value1, String value2) {
            addCriterion("coverImg between", value1, value2, "coverimg");
            return (Criteria) this;
        }

        public Criteria andCoverimgNotBetween(String value1, String value2) {
            addCriterion("coverImg not between", value1, value2, "coverimg");
            return (Criteria) this;
        }

        public Criteria andTotalfatIsNull() {
            addCriterion("totalFat is null");
            return (Criteria) this;
        }

        public Criteria andTotalfatIsNotNull() {
            addCriterion("totalFat is not null");
            return (Criteria) this;
        }

        public Criteria andTotalfatEqualTo(Integer value) {
            addCriterion("totalFat =", value, "totalfat");
            return (Criteria) this;
        }

        public Criteria andTotalfatNotEqualTo(Integer value) {
            addCriterion("totalFat <>", value, "totalfat");
            return (Criteria) this;
        }

        public Criteria andTotalfatGreaterThan(Integer value) {
            addCriterion("totalFat >", value, "totalfat");
            return (Criteria) this;
        }

        public Criteria andTotalfatGreaterThanOrEqualTo(Integer value) {
            addCriterion("totalFat >=", value, "totalfat");
            return (Criteria) this;
        }

        public Criteria andTotalfatLessThan(Integer value) {
            addCriterion("totalFat <", value, "totalfat");
            return (Criteria) this;
        }

        public Criteria andTotalfatLessThanOrEqualTo(Integer value) {
            addCriterion("totalFat <=", value, "totalfat");
            return (Criteria) this;
        }

        public Criteria andTotalfatIn(List<Integer> values) {
            addCriterion("totalFat in", values, "totalfat");
            return (Criteria) this;
        }

        public Criteria andTotalfatNotIn(List<Integer> values) {
            addCriterion("totalFat not in", values, "totalfat");
            return (Criteria) this;
        }

        public Criteria andTotalfatBetween(Integer value1, Integer value2) {
            addCriterion("totalFat between", value1, value2, "totalfat");
            return (Criteria) this;
        }

        public Criteria andTotalfatNotBetween(Integer value1, Integer value2) {
            addCriterion("totalFat not between", value1, value2, "totalfat");
            return (Criteria) this;
        }

        public Criteria andTotaltimeIsNull() {
            addCriterion("totalTime is null");
            return (Criteria) this;
        }

        public Criteria andTotaltimeIsNotNull() {
            addCriterion("totalTime is not null");
            return (Criteria) this;
        }

        public Criteria andTotaltimeEqualTo(Integer value) {
            addCriterion("totalTime =", value, "totaltime");
            return (Criteria) this;
        }

        public Criteria andTotaltimeNotEqualTo(Integer value) {
            addCriterion("totalTime <>", value, "totaltime");
            return (Criteria) this;
        }

        public Criteria andTotaltimeGreaterThan(Integer value) {
            addCriterion("totalTime >", value, "totaltime");
            return (Criteria) this;
        }

        public Criteria andTotaltimeGreaterThanOrEqualTo(Integer value) {
            addCriterion("totalTime >=", value, "totaltime");
            return (Criteria) this;
        }

        public Criteria andTotaltimeLessThan(Integer value) {
            addCriterion("totalTime <", value, "totaltime");
            return (Criteria) this;
        }

        public Criteria andTotaltimeLessThanOrEqualTo(Integer value) {
            addCriterion("totalTime <=", value, "totaltime");
            return (Criteria) this;
        }

        public Criteria andTotaltimeIn(List<Integer> values) {
            addCriterion("totalTime in", values, "totaltime");
            return (Criteria) this;
        }

        public Criteria andTotaltimeNotIn(List<Integer> values) {
            addCriterion("totalTime not in", values, "totaltime");
            return (Criteria) this;
        }

        public Criteria andTotaltimeBetween(Integer value1, Integer value2) {
            addCriterion("totalTime between", value1, value2, "totaltime");
            return (Criteria) this;
        }

        public Criteria andTotaltimeNotBetween(Integer value1, Integer value2) {
            addCriterion("totalTime not between", value1, value2, "totaltime");
            return (Criteria) this;
        }

        public Criteria andVideoInfoIsNull() {
            addCriterion("video_info is null");
            return (Criteria) this;
        }

        public Criteria andVideoInfoIsNotNull() {
            addCriterion("video_info is not null");
            return (Criteria) this;
        }

        public Criteria andVideoInfoEqualTo(String value) {
            addCriterion("video_info =", value, "videoInfo");
            return (Criteria) this;
        }

        public Criteria andVideoInfoNotEqualTo(String value) {
            addCriterion("video_info <>", value, "videoInfo");
            return (Criteria) this;
        }

        public Criteria andVideoInfoGreaterThan(String value) {
            addCriterion("video_info >", value, "videoInfo");
            return (Criteria) this;
        }

        public Criteria andVideoInfoGreaterThanOrEqualTo(String value) {
            addCriterion("video_info >=", value, "videoInfo");
            return (Criteria) this;
        }

        public Criteria andVideoInfoLessThan(String value) {
            addCriterion("video_info <", value, "videoInfo");
            return (Criteria) this;
        }

        public Criteria andVideoInfoLessThanOrEqualTo(String value) {
            addCriterion("video_info <=", value, "videoInfo");
            return (Criteria) this;
        }

        public Criteria andVideoInfoLike(String value) {
            addCriterion("video_info like", value, "videoInfo");
            return (Criteria) this;
        }

        public Criteria andVideoInfoNotLike(String value) {
            addCriterion("video_info not like", value, "videoInfo");
            return (Criteria) this;
        }

        public Criteria andVideoInfoIn(List<String> values) {
            addCriterion("video_info in", values, "videoInfo");
            return (Criteria) this;
        }

        public Criteria andVideoInfoNotIn(List<String> values) {
            addCriterion("video_info not in", values, "videoInfo");
            return (Criteria) this;
        }

        public Criteria andVideoInfoBetween(String value1, String value2) {
            addCriterion("video_info between", value1, value2, "videoInfo");
            return (Criteria) this;
        }

        public Criteria andVideoInfoNotBetween(String value1, String value2) {
            addCriterion("video_info not between", value1, value2, "videoInfo");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNull() {
            addCriterion("create_time is null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNotNull() {
            addCriterion("create_time is not null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeEqualTo(Date value) {
            addCriterion("create_time =", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotEqualTo(Date value) {
            addCriterion("create_time <>", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThan(Date value) {
            addCriterion("create_time >", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("create_time >=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThan(Date value) {
            addCriterion("create_time <", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThanOrEqualTo(Date value) {
            addCriterion("create_time <=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIn(List<Date> values) {
            addCriterion("create_time in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotIn(List<Date> values) {
            addCriterion("create_time not in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeBetween(Date value1, Date value2) {
            addCriterion("create_time between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotBetween(Date value1, Date value2) {
            addCriterion("create_time not between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andIsCompleteIsNull() {
            addCriterion("is_complete is null");
            return (Criteria) this;
        }

        public Criteria andIsCompleteIsNotNull() {
            addCriterion("is_complete is not null");
            return (Criteria) this;
        }

        public Criteria andIsCompleteEqualTo(String value) {
            addCriterion("is_complete =", value, "isComplete");
            return (Criteria) this;
        }

        public Criteria andIsCompleteNotEqualTo(String value) {
            addCriterion("is_complete <>", value, "isComplete");
            return (Criteria) this;
        }

        public Criteria andIsCompleteGreaterThan(String value) {
            addCriterion("is_complete >", value, "isComplete");
            return (Criteria) this;
        }

        public Criteria andIsCompleteGreaterThanOrEqualTo(String value) {
            addCriterion("is_complete >=", value, "isComplete");
            return (Criteria) this;
        }

        public Criteria andIsCompleteLessThan(String value) {
            addCriterion("is_complete <", value, "isComplete");
            return (Criteria) this;
        }

        public Criteria andIsCompleteLessThanOrEqualTo(String value) {
            addCriterion("is_complete <=", value, "isComplete");
            return (Criteria) this;
        }

        public Criteria andIsCompleteLike(String value) {
            addCriterion("is_complete like", value, "isComplete");
            return (Criteria) this;
        }

        public Criteria andIsCompleteNotLike(String value) {
            addCriterion("is_complete not like", value, "isComplete");
            return (Criteria) this;
        }

        public Criteria andIsCompleteIn(List<String> values) {
            addCriterion("is_complete in", values, "isComplete");
            return (Criteria) this;
        }

        public Criteria andIsCompleteNotIn(List<String> values) {
            addCriterion("is_complete not in", values, "isComplete");
            return (Criteria) this;
        }

        public Criteria andIsCompleteBetween(String value1, String value2) {
            addCriterion("is_complete between", value1, value2, "isComplete");
            return (Criteria) this;
        }

        public Criteria andIsCompleteNotBetween(String value1, String value2) {
            addCriterion("is_complete not between", value1, value2, "isComplete");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}